package com.plant.user.utils;

import java.util.regex.Pattern;

public class ChinesePattern {
    // 正则表达式：不匹配汉字
    private static final Pattern CHINESE_PATTERN = Pattern.compile("[\u4e00-\u9fa5]");

    // 判断是否含有汉字
    public static Boolean isChinese(String str) {
        boolean b = CHINESE_PATTERN.matcher(str).find();
        return b;
    }
}